import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;

import java.util.Arrays;

public class ByteOrder {
    private static final int writeInt = 0x09080706;

    public static void main(String[] args) {
        System.out.println(java.nio.ByteOrder.nativeOrder());
        ByteBuf byteBuf = Unpooled.buffer(4, 8);
        byteBuf.writeIntLE(writeInt);
//        System.out.println(byteBuf.readIntLE());
        byte[] arr = new byte[4];
        byteBuf.readBytes(arr);
        System.out.println(Arrays.toString(arr));


        byteBuf.writeInt(writeInt);
//        System.out.println(byteBuf.readInt());
        byteBuf.readBytes(arr);
        System.out.println(Arrays.toString(arr));

    }
}